package com.example.framework.glide.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.example.framework.R;

/**
 * 这个类使用的是比较过时的. 最新到5 , 用的是3.7.0
 */
public class GlideActivity extends Activity
{
      
      TextView tvTitle;
      
      @Override
      protected void onCreate(Bundle savedInstanceState)
      {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_glide);
            
            tvTitle = findViewById(R.id.tv_title);
            
            tvTitle.setText("Glide");
            
            Button bt_glide_base = findViewById(R.id.bt_glide_base);
            bt_glide_base.setOnClickListener(new View.OnClickListener()
            {
                  @Override
                  public void onClick(View v)
                  {
                        Intent intent = new Intent(GlideActivity.this, GlideBaseActivity.class);
                        startActivity(intent);
                  }
            });
            
            Button bt_glide_recyclerview = findViewById(R.id.bt_glide_recyclerview);
            bt_glide_recyclerview.setOnClickListener(new View.OnClickListener()
            {
                  @Override
                  public void onClick(View v)
                  {
                        Intent intent = new Intent(GlideActivity.this, GlideRecyclerviewActivity.class);
                        startActivity(intent);
                  }
            });
            
            Button bt_glide_tranfromations = findViewById(R.id.bt_glide_tranfromations);
            bt_glide_tranfromations.setOnClickListener(new View.OnClickListener()
            {
                  @Override
                  public void onClick(View v)
                  {
                        Intent intent = new Intent(GlideActivity.this, GlideTranformationsActivity.class);
                        
                        startActivity(intent);
                  }
            });
      }
}
